package com.central.common.feign;

import com.central.common.constant.ServiceNameConstants;
import com.central.common.model.SysDepartment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.Map;

/**
 * @author td
 */
@FeignClient(name = ServiceNameConstants.USER_SERVICE, decode404 = true)
public interface DepartmentService {
    /**
     * 获取部门字典
     * @return
     */
    @GetMapping("/department/findDepartmentMap")
    Map<String, SysDepartment> findDepartmentMap();

}
